{extend name="base/index"/} 
{block name="page_location"}
<div class="row">
    <div class="col-12">
        <div class="page-title-box">
            <div class="page-title-right">
                <ol class="breadcrumb m-0">
					<li class="breadcrumb-item"><a href="{:url('index/index')}">管理中心</a></li>
					<li class="breadcrumb-item active"><i class="iconfont icon-angle-right"></i>管理员管理</li>
                </ol>
            </div>
            <h4 class="page-title">
            	{$page_title}
            </h4>
        </div>
    </div>
</div>
{/block} 
{block name="body"}
<div class="row" id="admin_privilege_page">
    <div class="col-12">
        <div class="card">
            <div class="card-body">
                <div class="row">
                    <div class="col-lg-12">
                        <form action="#" class="form-horizontal" id="edit_privilege_frm">
                            <div class="form-group mb-2">
                                <label for="simpleinput" class="simpleinput">选择管理员：</label>
								<select class="form-control form_input_check" data-type="select" data-len="1-100000" nullmsg="请选择管理员" tabindex="1" name="admin_id">
									<option value="0">--请选择管理员--</option>
									{volist name="admin_list" id="d"} {eq name="d.id" value="$uid"}
									<option value="{$d.id}" selected="selected">{$d.username}[{$d.nickname}]</option>
									{else /}
									<option value="{$d.id}">{$d.username}[{$d.nickname}]</option>
									{/eq} 
									{/volist}
								</select>
                            </div>

                            <div class="form-group mb-2">
                                <label for="simpleinput">批量选择:</label>                             
                                <p>
									<button type="button" class="btn btn-success btn-sm" id="select_all_btn">全选</button>
	                                <button type="button" class="btn btn-success btn-sm" id="select_un_btn">反选</button>
	                                <button type="button" class="btn btn-success btn-sm" id="select_cancel_btn">取消</button>                                	
                                </p>
                            </div>
							{volist name="priv_list" id="d"}
                            <div class="form-group mb-2">
                                <label for="simpleinput " class="simpleinput">{$d.menu_name}：</label>
                                <div class="custom-control custom-checkbox">
                                    <input type="checkbox" class="custom-control-input cbox cats_select_btn" id="customCheck_{$d.id}" value="{$d.menu_url}"  name="menu[]" attr-cid="{$d.id}">
                                    <label class="custom-control-label" for="customCheck_{$d.id}">主菜单</label>
                                </div>
								{volist name="d.menu_list" id="node"}
								<div class="custom-control custom-checkbox">
								    <input type="checkbox" class="custom-control-input cbox menu_node_{$node.id}" id="customCheck_{$node.id}" value="{$node.menu_url}"  name="menu[]" attr-cid="{$node.id}">
								    <label class="custom-control-label" for="customCheck_{$node.id}">{$node.menu_name}</label>
								</div>								
								{/volist}
                            </div>
							{/volist}
                        </form>
                        <button type="button" class="btn btn-primary Fast_Form_Post" attr-frm="#edit_privilege_frm" attr-model="admin" attr-active="save_privilege" attr-callback="reload">保存 & 返回</button>
                    </div> <!-- end col -->
                    
                </div>
                <!-- end row-->

            </div> <!-- end card-body -->
        </div> <!-- end card -->
    </div><!-- end col -->
</div>

<!-- END PAGE CONTENT-->
{/block}